<!DOCTYPE html>
<html>
<head>
    <title>로그 확인</title>
    <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0-alpha.2/jquery.mobile-1.4.0-alpha.2.min.css">
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.0-alpha.2/jquery.mobile-1.4.0-alpha.2.min.js"></script>
    <script>

    </script>
</head>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="b" data-add-back-btn="true">
            <h1>Log View</h1>
        </div>
        <div data-role="content">
            <ul data-role="listview" data-inset="true">
                <li data-role="list-divider">[User View] Read 대기화면 (Tag를 아래 클릭으로 대체)</li>

	<% if(data.length==0){ %>
	<tr>
		<td colspan="3" align="center">기록이 없습니다.</td>
	</tr>
	<% }else{
		for(var i=data.length-1; i >= 0; i--){ %>

                <li>
                    <a href="/readview?i=<%= data[i].pid %>&<%= data[i].qs %>">
                        <h3>[<%= i+1 %>] <%= data[i].pid %></h3>
                        <p><%= data[i].qs %></p>
                    </a>
                </li>
	<% }
	} %>
                <li data-role="list-divider">Divider</li>
                <li>
                    <a href="#">
                        <h3>[No.] Primary Key</h3>
                        <p>(NFC Tag NDEF)</p>
                    </a>
                </li>
            </ul>
        </div>
	<h4><a href="/">Main</a></h4>
	<h4><a href="/log/clear">[로그 삭제]</a></h4>
    </div>
</body>
</html>